package cn.shuangliang.contract.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Contract {
    private Long id;

    private String contractno;

    private Date ctime;

    private String billno;

    private String marker;

    private Boolean isall;

    private String seller;

    private Date cdate;

    private List<Contractitem> items=new ArrayList<>();

    private List<Contractitem> historys=new ArrayList<>();

    public Contract(){}

    public Contract(String contractno, Date ctime, String billno, String marker, String seller) {
        this.contractno = contractno;
        this.ctime = ctime;
        this.billno = billno;
        this.marker = marker;
        this.seller = seller;

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<Contractitem> getHistorys() {
        return historys;
    }

    public void setHistorys(List<Contractitem> historys) {
        this.historys = historys;
    }

    public String getContractno() {
        return contractno;
    }

    public void setContractno(String contractno) {
        this.contractno = contractno == null ? null : contractno.trim();
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public String getBillno() {
        return billno;
    }

    public void setBillno(String billno) {
        this.billno = billno == null ? null : billno.trim();
    }

    public String getMarker() {
        return marker;
    }

    public void setMarker(String marker) {
        this.marker = marker == null ? null : marker.trim();
    }

    public Boolean getIsall() {
        return isall;
    }

    public void setIsall(Boolean isall) {
        this.isall = isall;
    }

    public String getSeller() {
        return seller;
    }

    public void setSeller(String seller) {
        this.seller = seller == null ? null : seller.trim();
    }

    public Date getCdate() {
        return cdate;
    }

    public void setCdate(Date cdate) {
        this.cdate = cdate;
    }

    public List<Contractitem> getItems() {
        return items;
    }

    public void setItems(List<Contractitem> items) {
        this.items = items;
    }
}